package com.yznote.cloudesk.common.exception;

import lombok.Data;

@Data
public class FileNameRepeatException extends RuntimeException{
    // 错误码
    private Integer code;
    private Object data ;

    public FileNameRepeatException(String message, Integer code,Object data) {
        super(message);
        this.code = code;
        this.data=data;
    }

    @Override
    public String toString() {
        return "FileNameRepeatException{" +
                "code=" + code +
                ", data=" + data +
                '}';
    }
}
